<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">对战列表</a></li>
        <li><a href="{:url('BatMatch/add')}">添加对战</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:url('BatMatch/index')}">
        对战球队名称：
        <input type="text" class="form-control" name="team_name" style="width: 200px;"
               value="{:input('request.team_name','')}" placeholder="请输入球队名称">
        类型：
        <select class="form-control" name="type" style="width:140px;">
            <option value="0" <eq name=":input('request.type','')" value="0"> selected</eq> >足球</option>
            <option value="1" <eq name=":input('request.type','')" value="1"> selected</eq>  >篮球</option>
            <option value="2" <eq name=":input('request.type','')" value="2"> selected</eq> >电竞</option>
        </select>
        比赛日期：
        <input class="form-control js-bootstrap-date" type="text" value="{:input('request.match_time','')}" placeholder="请输入比赛日期" name="match_time">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('BatMatch/index')}">清空</a>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
<!--                <th width="50">-->
<!--                    <label>-->
<!--                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">-->
<!--                    </label>-->
<!--                </th>-->
                <th>ID</th>
                <th>对战球队</th>
                <th>联赛名称</th>
                <th>类型</th>
                <th>参与人数</th>
<!--                <th>是否推荐首页</th>-->
                <th>状态</th>
                <th>比赛时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <volist name="list" id="vo">
                <tr>
<!--                    <td>-->
<!--                        <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"-->
<!--                               value="{$vo.id}" title="ID:{$vo.id}">-->
<!--                    </td>-->
                    <td>{$vo.id}</td>
                    <td>{$vo.team_main.team_name}
                        vs
                        {$vo.team_pass.team_name}
                    </td>
                    <td>{$vo.lea_name}</td>
                    <td>{$vo::$typeMap[$vo.type]}</td>
                    <td>{$vo.real_num}</td>
<!--                    <td>{$vo.is_recommend?'是':'否'}</td>-->
                    <td>{$vo::$refundStatusMap[$vo.status]}</td>
                    <td>
                        {$vo.match_time}
                    </td>


                    <td>
                        <a class="btn btn-xs btn-primary" href="{:url('BatMatch/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('BatMatch/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </volist>
        </table>
        <!--分页-->
        <ul class="pagination">{$page|default=''}</ul>
    </form>
    
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

    function reloadPage(win) {
        win.location.reload();
    }
</script>
</body>
</html>